﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;
using Microsoft.Phone.Tasks;

namespace MyUtilityApp
{
    public partial class PlayVDOPage : PhoneApplicationPage
    {
        public PlayVDOPage()
        {
            InitializeComponent();
        }

        private void playButton_Click(object sender, System.EventArgs e)
        {
			myVDO.Play();
        }

        private void stopButton_Click(object sender, System.EventArgs e)
        {
        	myVDO.Stop();
        }

        private void muteButton_Click(object sender, System.EventArgs e)
        {
        	myVDO.IsMuted = !myVDO.IsMuted;
        }

        private void shareButton_Click(object sender, System.EventArgs e)
        {
        	ShareLinkTask share = new ShareLinkTask();
			share.Title = "Maboy";
			share.LinkUri = new Uri("http://micthailand.net/wp7/camp/files/maboy.mp4");
			share.Message = "Wow Wow !!";
			share.Show();
			
			/**
			ShareStatusTask status = new ShareStatusTask();
			status.Status = "ง่วงจุงเบย";
			status.Show();
			**/
			
			/**
			ShareMediaTask media = new ShareMediaTask();
			media.FilePath = "";
			media.Show();
			**/
        }

        private void aboutButton_Click(object sender, System.EventArgs e)
        {
			//index.php?a=10&b=20
        	NavigationService.Navigate(new Uri("/AboutPage.xaml?Artist=Maboy",
				UriKind.RelativeOrAbsolute));
        }
		
		
		
		
		
		
		
		
		
		
    }
}